# 线程
import threading
import time


def fun1():
    for i in range(5):
        print("--fun1中的值为：", i)
        time.sleep(1)


def fun2():
    for i in range(5):
        print("--fun2中的值为：", i)
        time.sleep(1)


def single():
    fun1()
    fun2()


def mult():
    t1 = threading.Thread(target=fun1)
    t2 = threading.Thread(target=fun2)
    t1.start()
    t2.start()


if __name__ == '__main__':
    # single()
    mult()
